/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package caro.client.gui;

import javax.swing.ImageIcon;

/**
 *
 * @author NQ
 */
public class ImageProvider {
    private static ImageProvider instance = null;
    public static ImageProvider getInstance(){
        if(instance == null){
            instance = new ImageProvider();
        }
        return instance;
    }
    public ImageIcon getImage(String imageName){
        return new ImageIcon(getClass().getResource("images/".concat(imageName)));
    }
}
